package fr.poc.rest.config;

import java.util.logging.Logger;

import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;

import fr.poc.app.Application;

//import org.springframework.web.filter.RequestContextFilter;

public class JerseyConfig extends ResourceConfig {

	public JerseyConfig() {
		register(RequestContextFilter.class);
		packages("fr.poc");
		//register(LoggingFilter.class);
		
		//trace request and responses (with headers and body)
		registerInstances(new LoggingFilter(Logger.getLogger(Application.class
				.getName()), true));
	}
}